package com.ice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class HelloApplication {


    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(HelloApplication.class);
        ConfigurableApplicationContext applicationContext = springApplication.run(args);
        System.out.println("程序已启动, 端口 = " + applicationContext.getEnvironment().getProperty("local.server.port"));
    }
}
